<?php
$ids = get_cookie_arr('footpoint');
$rs = [];
if($ids){
    $ids = array_slice($ids,0,5);
    $rs = db()->query("select * from goods where id in (".implode(',',$ids).")");
}
?>
<!--猜你喜欢-->
<div class="cls_menu fl">
  <div class="related_prod">
    <h3>我的足迹</h3>
    <ul class="wrapper">
      <?php foreach($rs as $k=>$v):?>
      <li>
        <a href="<?=url('goods/detail',['id'=>$v['id']])?>"><img src="<?=$v['pic']?>"></a>
        <div class="info">
          <p class="name"><a href="<?=url('goods/detail',['id'=>$v['id']])?>"><?=$v['title']?></a></p>
          <p class="price">￥<?=$v["price"]?></p>
        </div>
      </li>
      <?php endforeach;?>
    </ul>
  </div>
</div>
<!--猜你喜欢-->
